import request from '@/utils/request'

export function queryHistoryMonthList(agencyId) {
  return request({
    url: '/agencyVerifyController/queryHistoryMonthList',
    method: 'get',
    params: {
      agencyId
    }
  })
}

export function queryColumnByAgencyIdAndSalaryMonth(agencyId, month) {
  return request({
    url: '/agencySalaryHistoryController/queryColumnByAgencyIdAndSalaryMonth',
    method: 'get',
    params: {
      agencyId,
      month
    }
  })
}

export function querySalaryHistoryPage(params) {
  return request({
    url: '/salaryHistoryController/querySalaryHistoryPage',
    method: 'get',
    params: params
  })
}

export function saveThirteenthMonthSalary(list) {
  return request({
    url: '/salaryMonthEndController/saveThirteenthMonthSalary',
    method: 'post',
    data: list
  })
}

export function queryThirteenSalaryPage(agencyId) {
  return request({
    url: '/salaryMonthEndController/queryThirteenSalaryPage',
    method: 'get',
    params: {
      agencyId
    }
  })
}

export function queryColumnByAgencyId(agencyId) {
  return request({
    url: '/agencySalaryController/queryColumnByAgencyId',
    method: 'get',
    params: {
      agencyId
    }
  })
}

export function physicalDeleteThirteenMonthSalary(agencyId) {
  return request({
    url: '/salaryMonthEndController/physicalDeleteThirteenMonthSalary/' + agencyId,
    method: 'post'
  })
}

export function submitThirteenthMonthSalary(list) {
  return request({
    url: '/salaryMonthEndController/submitThirteenthMonthSalary',
    method: 'post',
    data: list
  })
}

